﻿namespace Agile.Service.Admin.Model.ViewModel;

public class LoginRequest
{
    /// <summary>用户名</summary>
    [JsonConverter(typeof(StringTrimConverter))]
    public string UserName { get; set; }

    /// <summary>用户密码</summary>
    [JsonConverter(typeof(StringTrimConverter))]
    public string Password { get; set; }

    /// <summary>验证码</summary>
    [JsonConverter(typeof(StringTrimConverter))] 
    public string CheckPwd { get; set; }
}

public class RefreshTokenRequest
{
    /// <summary>刷新token</summary>
    public string RefreshToken { get; set; }
}


public class BindingRequest
{
    /// <summary> code </summary> 
    [Required]
    public string Code { get; set; }
    /// <summary> 呢称 </summary> 
    [Required]
    public string NickName { get; set; }
    /// <summary> 手机号 </summary> 
    public string Phone { get; set; }
    /// <summary> 头像 </summary> 
    public string AvatarUrl { get; set; }
    /// <summary> 省 </summary> 
    public string Province { get; set; }
    /// <summary> 市 </summary> 
    public string City { get; set; }
    /// <summary> 区 </summary> 
    public string Country { get; set; }
    /// <summary> 性别 </summary> 
    public int Gender { get; set; }
}